/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Mail;

import java.io.Serializable;

/**
 *
 * @author Bery
 */
public class MessageSender implements Serializable {

    private String sender;
    private String destinatario;

    public MessageSender(String sender, String destinatario) {
        this.sender = sender;
        this.destinatario = destinatario;
    }

    public MessageSender(String sender) {
        this.sender = sender;
    }

    @Override
    public String toString() {
        return "From:" + this.sender + ";To:" + this.destinatario;
    }
}
